<link rel="stylesheet" type="text/css" href="<?php echo url::base(FALSE) ?>css/content.css">
<table>
    <tr><td id="dbinventarisasi">Database Inventarisasi</td><td></td></tr>
    <tr>
        <td width="70%" class="content">
            <table border="1" align="center" width="100%" class="tabcontent">
                <tr>
                    <td width="50">ID</td>
                    <td>Tanggal</td>
                    <td>Keterangan</td>
                    <td>Tipe</td>
                    <td>Nominal</td>
                </tr>
                <?php if (isset($inventarisasi)): ?>
                    <?php foreach ($inventarisasi->get_all_inventarisasi() as $row) : ?>
                        <tr>
                            <td><?php echo $row->ID_inventarisasi ?></td>
                            <td><?php echo $row->tanggal ?></td>
                            <td><?php echo $row->keterangan ?></td>
                            <td><?php echo $row->tipe ?></td>
                            <td><?php echo $row->nominal ?></td>
                        </tr>
                    <?php endforeach ?>
                <?php endif; ?>
            </table>
        </td>
        <td class="input">
            <form action="<?php echo url::site() . 'inventarisasi/add_inventarisasi' ?>" method="post" >
                <table cellspacing="5">
                    <tr><td colspan="3" align="center">Tambah Inventarisasi</td></tr>
                    <tr>
                        <td>Keterangan</td><td style="width:5px">:</td><td align="right"><input name="keterangan" type="text"/></td>
                    </tr>
                    <tr>
                        <td>Tipe</td><td style="width:5px">:</td>
                        <td align="left">
                            <select name="tipe" style="width: 149px">
                                <!-- dummy: harusnya ambil dari database -->
                                <option value="pemasukan">pemasukan</option>
                                <option value="pengeluaran">pengeluaran</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>Nominal (Rp)</td><td style="width:5px">:</td><td align="right"><input name="nominal" type="text"/></td>
                    </tr>
                    <tr>
                        <td colspan="2"></td><td align="right"><input type="submit" value="Submit" /></td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
</table>